//
//  ARCate5Model.m
//  AriseSamePro
//
//  Created by 包日守 on 15/10/23.
//  Copyright © 2015年 Arise. All rights reserved.
//

#import "ARCate5Model.h"

@implementation ARCate5Model




- (id) init
{
    if ([super init]) {
        self.channelModel = [[ARChannelModel alloc] init];
       
        self.mediaModel = [[ARMedia alloc] init];
        
        self.userModel = [[ARUser alloc] init];
        
    }
    return self;

}

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues
{
    [super setValuesForKeysWithDictionary:keyedValues];
    
    self.index = keyedValues[@"id"];
    [self.channelModel setValuesForKeysWithDictionary:keyedValues[@"channel"]];
    [self.mediaModel setValuesForKeysWithDictionary:keyedValues[@"media"]];
    [self.userModel setValuesForKeysWithDictionary:keyedValues[@"user"]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{}
@end
